package com.water.bs.mapper;

import com.water.bs.pojo.Gift;
import com.water.bs.pojo.GiftHistory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserGiftMapper {
    List<Gift> queryAbleGift();    //查询所有可兑换礼物

    List<Map<String,Object>> qryGiftHistory(String id);  //礼物兑换历史

    int cancelGiftBuy(String id);//取消兑换

    int exchangeGift(Map<String,Object> map);

    Gift qryGiftById(String id);
}
